
/* GENERATED CODE:
 *  Any modifications you make are guaranteed
 *  to be deleted when this is regenerated.
 * Please edit "PROTOCOLS" inside this directory
 *
 * Names are all upper case because of "String" and "string."
 */

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using OWED.Network.Messages.General;
using OWED.Network.Messages;
using OWED.Network.Messages.Reply;


namespace OWED.Network.Messages.General
{
	public class DocName: IProtocolItem 
	{
		String my_name;
		public DocName (String name)
		{
			my_name = name;
		}
		public String name { get { return my_name; } }


		public static new DocName FromXml(XmlDocument xml)
		{
			String name = xml.SelectSingleNode("DocName").Attributes.GetNamedItem("name").Value;
			return new DocName(name);
		}


		public override XmlDocument ToXml()		{
			XmlDocument doc = new XmlDocument();

			doc.AppendChild(doc.CreateElement("DocName"));
			XmlAttribute attr;
			attr = doc.CreateAttribute("name");
			attr.Value = my_name;
			doc.FirstChild.Attributes.Append(attr);


			return doc;
		}
	}
}
